﻿using App.Code;
using App.IServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AppAit.Areas.SystemManage.Controllers
{
    public class ArticleController : ControllerBase
    {
        IarticleServices _article;
        public ArticleController(IarticleServices article)
        {
            _article = article;
        }
        /// <summary>
        /// 列表
        /// </summary>
        /// <param name="keyword">文章id或文章标题</param>
        [HttpGet]
        [HandlerAjaxOnly]
        public ActionResult GetGridJson()
        {
            var data = _article.GetList();
            return Content(data.ToJson());
        }
    }
}